From 211511570b447ad0256a992bf8e3b5dfa8a82fb7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 26 Feb 2026 22:10:12 -0800 Subject: fix amount toggles --- src/routes/(app)/payment/[id]/plain/+page.svelte | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src/routes/(app)/payment/[id]/plain') diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte index 41cdd25b..1efe2c32 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.svelte +++ b/src/routes/(app)/payment/[id]/plain/+page.svelte @@ -40,11 +40,8 @@
Amount
- {#if $fiat} - {f(toFiat(a, rate), currency)} - {:else} - {s(a)} - {/if} + {f(toFiat(a, rate), currency)} + {s(a)}
@@ -52,11 +49,8 @@
Tip
- {#if $fiat} - {f(toFiat(tip, rate), currency)} - {:else} - {s(tip)} - {/if} + {f(toFiat(tip, rate), currency)} + {s(tip)} ({Math.round((tip * 100) / Math.abs(a))}%)
@@ -64,11 +58,8 @@
Total
- {#if $fiat} - {f(toFiat(a + (tip || 0), rate), currency)} - {:else} - {s(a + (tip || 0))} - {/if} + {f(toFiat(a + (tip || 0), rate), currency)} + {s(a + (tip || 0))}
{/if} -- cgit v1.2.3